package com.lennon.eoi.executors;

import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * eoi 饱和策略
 * 
 * @author lennon
 *
 */
public class EOIRejectedExecutionHandler implements RejectedExecutionHandler{

    
    /**
     * 如果达到饱和状态之后，那么将改任务直接设置为失败，content提示导出导入人数太多，请稍后再重试
     * 
     */
	@Override
	public void rejectedExecution(Runnable runnable, ThreadPoolExecutor threadpoolexecutor) {
		// TODO Auto-generated method stub
	    EOITaskWrapper eoiTask = (EOITaskWrapper) runnable;
	    
	    // 设置任务失败
	}
}
